/*
 *  circleAI.cpp
 *  
 *
 *  Created by Nicholas Blecha on 11/13/10.
 *  Copyright 2010 Michigan Technological University. All rights reserved.
 *
 */

#include "circleAI.h"

CircleAI::CircleAI(Renderer *rend, Logic *lgc) : Fighter(10, 30, 10) {
	rnd=rend;
	logic = lgc;
	initializeBeams();
	image = rnd->loadImage("Images/drone0.png");
	texId = rnd->createTexture(image);
	position.x = 400;
	position.y = 400;
	position.w = image->w;
	position.h = image->h;
	
	drawPos->w=image->w;
	drawPos->h=image->h;
	
	defaultColor=BLUE;
}

void CircleAI::decide(int choice) {
	switch (choice) {
		case 0:
			stopTurn();
			accelerateForward();
			normal->fire();
			break;
		case 1:
			turnLeft();
			accelerateForward();
			break;
		case 2:
			turnRight();
			accelerateForward();
			break;
		default:
			accelerateForward();
			break;
	}
}